<template>
    <a-tabs>
        <a-tab-pane key="1" tab="信息">
             <a-card>
                <Info :stationId="stationId" />
             </a-card>
        </a-tab-pane>
        <a-tab-pane key="2" tab="设备">
             <Devices :stationId="stationId" />
        </a-tab-pane>
    </a-tabs>
</template>

<script lang="ts" setup>
    import Devices from './Devices.vue'
    import Info from './Info.vue'
    import { useRoute } from 'vue-router'
    const route = useRoute()

    const stationId = Number(route.params.id)
    const stationName = route.query.name
</script>